package com.itheima.homework;

import java.util.Scanner;

public class Test13 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入月份:(1~12)");
        abc:
        while (true) {
            int mon = sc.nextInt();
            switch (mon) {
                case 3:
                case 4:
                case 5:
                    System.out.println(mon + "月为春季");
                    break abc;
                case 6:
                case 7:
                case 8:
                    System.out.println(mon + "月为夏季");
                    break abc;
                case 9:
                case 10:
                case 11:
                    System.out.println(mon + "月为秋季");
                    break abc;
                case 12:
                case 1:
                case 2:
                    System.out.println(mon + "月为冬季");
                    break abc;
                default: {
                    System.out.println("请输入正确的月份");
                }
            }
        }

    }
}
